package cn.itsource.org.domain;

import cn.itsource.basic.domain.BaseDomain;
import cn.itsource.basic.domain.CreatePassword;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

@Data //生成get set hashcode toString
@AllArgsConstructor //全参数构造
@NoArgsConstructor //无参构造
@Table(name="t_employee")
@Api("员工对象")
public class Employee extends BaseDomain implements CreatePassword {

    //用户名
    private String username;
    //邮箱
    private String email;
    //手机号
    private String phone;
    //盐值
    private String salt;
    //密码
    private String password;
    //确认密码
    @Transient //不和数据库交互的
    private String comfirmPassword;
    //年龄
    private Integer age;
    //状态 1.正常 0：禁用
    private Integer state = 1;

    //头像
    private String headImg;
    //部门id
    private Long departmentId;

    private Long logininfoId;
    //店铺id
    private Long shopId;
    private Long parentId;
    private Long managerId;


}
